package com.shop.cereshop.app.dao.order;

import com.shop.cereshop.app.page.cart.CartSku;
import com.shop.cereshop.commons.domain.order.CereOrderProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface CereOrderProductDAO {
    int insert(CereOrderProduct record);

    int insertSelective(CereOrderProduct record);

    List<CartSku> findOrderProductSku(@Param("orderId") Long orderId);

    CereOrderProduct selectByOrderId(@Param("orderId") Long orderId);

    int updateNumberBytickets(@Param("value") int value, @Param("orderId") Long orderId);


}